const express = require('express')
const { login, register, current } = require('../controllers/users')
const { auth } = require('../middleware/auth');

const router = express.Router()

/* api/user/login */
router.post('/login', login)
/* api/user/register */
router.post('/register', register)
/* api/user/current */
router.get('/current', auth, current)

module.exports = router
